
// 查询条件
export const defaultConfig = {
    // search: '查询',
    labelWidth:'70px',
    tr: [
      {
        td:[
          {
            label: '操作类型',
            name: 'operateType',
            rule: '',
            select:true,
            selectList:[
              {label:'登录',value:0},
              {label:'查询',value:1},
              {label:'新增',value:2},
              {label:'修改',value:3},
              {label:'删除',value:4},
            ]
          },
          {
            label: '操作人',
            name: 'searchUserName',
            rule: '',
            ref:'input',
            autofocus:true
          },
          {
            label: '开始日期',
            name: 'startOperateTime',
            placeholder:'操作开始日期',
            rule: '',
            date:true,
            type:'date'
          },
          {
            label: '结束日期',
            name: 'endOperateTime',
            placeholder:'操作结束日期',
            rule: '',
            date:true,
            type:'date'
          }
        ]
      },
      {
        td:[
          {
            label: '所属单位',
            name: 'organIds',
            rule: '',
            cascader:true,
            props:{lazy:true,lazyLoad:function(node,resolve){},checkStrictly:true,value:'id',label:'abbreviation',children:'childOrgan'},
            options:[],
            colspan2:true
          },
          {
            searchBtn:true,
            rule:'',
            label:'',
            name:''
          }
        ]
      }
    ]

}

// 列表项
export const tableConfig = {
    columns:[{
      label: '操作人',
      prop: 'userName',
      width:'100'
  }, {
      label: '操作时间',
      prop: 'operateTime',
      width: '160',
  },
  {
      label: '操作模块',
      prop: 'operateName',
      width: '120'
  },
  {
    label: '操作类型',
    prop: 'operateType',
    align:'center',
    width: '80'
  },
  {
    label: '具体操作',
    prop: 'operateCondition',
    width: '200',
    showTooltip:true
  },
  {
    label: '所属单位',
    prop: 'organization',
    width: 'auto',
    minWidth:'180'
  },
  {
    label: 'IP地址',
    prop: 'terminalId',
    width: '130'
  }]
}

export const editConfig = {
    isDataFromScope: true
}

